package cc.openkit.kitservice.demo.impl;

import cc.openkit.kitdao.demo.DemoDao;
import cc.openkit.kitmodel.demo.Demo;
import cc.openkit.kitservice.demo.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoServiceImpl implements DemoService {
    @Autowired
    private DemoDao demoDao;

    @Override
    public Demo addOne(Demo demo) {
        return this.demoDao.save(demo);
    }
}
